11. Adding a Loop

Adding a Loop

Question:

Start Quiz:

Solution:

INSTRUCTOR NOTE:

How to use a loop in Python

While Statements in Python: this link goes over Python syntax for while loops and will also give you pointers in case your loop doesn't stop running!

Code

import time
import webbrowser
time.sleep(10)
webbrowser.open("http://www.youtube.com/watch?v=dQw4w9WgXcQ")